//
//  UIView+CornerRadius.m
//  BowJoy
//
//  Created by  on 2024/5/14.
//

#import "UIView+CornerRadius.h"

@implementation UIView (CornerRadius)
- (void)setCornerRadius:(CGFloat)cornerRadius

{

   self.layer.cornerRadius= cornerRadius;

   self.layer.masksToBounds= cornerRadius >0;

}

- (CGFloat)cornerRadius

{

   return self.layer.cornerRadius;

}


@end
